﻿using Autofac;
using Nop.Core.Configuration;
using Nop.Core.Infrastructure;
using Nop.Core.Infrastructure.DependencyManagement;
using Nop.Plugin.Resources.Client.Services;
using Nop.Services.Media;
using System;
using System.Collections.Generic;
using System.Text;

namespace Nop.Plugin.Resources.Client.Infrastructure
{
    class DependencyRegister : IDependencyRegistrar
    {
        public virtual int Order
        {
            get { return Int16.MaxValue; }
        }

        public void Register(ContainerBuilder builder, ITypeFinder typeFinder, NopConfig config)
        { 
            builder.RegisterType<ResPictureService>().As<IPictureService>().InstancePerLifetimeScope(); 
        }
    }
}
